//
//  LTError.m
//  LTIM
//
//  Created by 俊松何 on 2017/3/30.
//  Copyright © 2017年 俊松何. All rights reserved.
//

#import "LTError.h"

@implementation LTError
+ (instancetype)errorWithDescription:(NSString *)Description
                                 code:(NSInteger)Code
{
    LTError *error = [[LTError alloc] init];
    error.errorDescription = Description;
    error.code = Code;
    return error;
}
+ (instancetype) netWorkError
{
    return [self errorWithDescription:@"网络错误" code:-1];

}
@end
